<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@include file="taglibs.jsp"%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta charset="utf-8">
  <script>
  $(function() {
    $( "#fromDatePick" ).datepicker({ dateFormat: "dd/mm/yy" });
    $( "#toDatePick" ).datepicker({ dateFormat: "dd/mm/yy" });
  });
  </script></head>
<body >
    <stripes:form beanclass="l3s.wikirevisions.WikiActionBean" focus="" id="searchForm1">
        <stripes:errors/>
        <div class="">
        <table style="border-collapse: collapse;" >
            <tr>
                <td>Query:</td>
                <td>                
                	<s:text  class="Feld" id="search_input" name="query"/>
                	<stripes:submit name="search" value="Search"/>
                </td>
                
            </tr>
            
            <tr style="border-top:1px solid black;" name="advancedSearch">
                <td>From date:</td>
                <td>
                	<input type="text" id="fromDatePick" name="fromDate" value="${actionBean.fromDateStrToDisplay }" onchange="validate_dates()">
                </td>
                <!-- 
               	<td> <input type="date" name="fromDate" id="fromDatePick" value="${actionBean.fromDateStr }" onchange="validate_dates()"/> </td>
               	 -->
               	<td>To date:</td>
                <td>
                	<input type="text" id="toDatePick" name="toDate" value="${actionBean.toDateStrToDisplay }" onchange="validate_dates()">
                </td>
               	
               	<!-- 
               	<td> <input type="date" name="toDate" id="toDatePick" value="${actionBean.toDateStr}" onchange="validate_dates()"/> </td>
               	 -->
            </tr>
            <!-- 
            <tr name="sourceChoosing">
            	<td>Wiki pages source:</td>
            	<td>
					<select name="sourceList" id="sourceList" onchange="setSourceCookie(); return false;">
					  <option value="WikiPoliticians">WikiPoliticians</option>
					  <option value="politicians_versioning">Politicians Versioning</option>
					</select>
				</td>            
             </tr>
              -->
        </table>
        </div>
    </stripes:form>

</body>
</html>